import request from '@/utils/request'
// 订单接口
export default {
  getOrders(params) {
    return request.get('/orders/list', { params })
  },
  getOrderDetail(id) {
    return request.get(`/orders/detail/${id}`)
  },
  updateOrderStatus(data) {
    return request.post('/orders/update-status', data)
  }
}